package com.cumt.websocket.config;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * Created by caicf on 2017/1/11.
 */
public class WsEndpointConfig {

    private static final List<Class<?>> endpoints = new CopyOnWriteArrayList<>();

    public static void addEndpoint(Class<?> cls) {
        endpoints.add(cls);
    }

    public static void addEndpoint(Class<?>... cls) {
        for (Class<?> cl : cls) {
            endpoints.add(cl);
        }
    }

    public static List<Class<?>> getEndpoints() {
        return endpoints;
    }
}
